//
//  Common.h
//  HB
//
//  Created by 陶秋安 on 16/2/19.
//  Copyright © 2016年 孙智慧. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface Common : NSObject

+ (BOOL)isMobileNumber:(NSString *)mobileNum;

+ (void)showMsg:(NSString *) msg andCancel:(BOOL) hasCancel andHost:(id)host;

+ (NSString *)createMD5:(NSString *)signString;

+ (void)createActivityView:(UIView *)img;

+ (void)stopActivityView:(UIView*)img;

+ (BOOL)checkLanchExist:(NSString *)fileName;

+ (BOOL)checkMp3Exist:(NSString *)fileName;

+ (void) setUserDefaults:(NSString *) keyName andValue:(NSString *)value;

+ (NSString *) getUserDefaults:(NSString *) keyName;

+ (void)setCover:(UIImageView *) targetView;

+ (NSString *)checkNetworkState;

+ (void) downLoadImageByURL:(UIImageView *) view andURL:(NSString *) imgPath andName:(NSString *)imgName;

+(NSString*)getCacheSize;

+(void) clearCache:(id)host sel:(SEL)sel;

+(NSDate*) convertDateFromString:(NSString*)uiDate;

+(NSString *) convertSize:(NSInteger )size;

+(BOOL)isVerifyPwd:(NSString *)pwd;

+(NSString *) checkMusicIsExists:(NSString *)musicID qualityID:(NSString *)qualityID;

+(NSString *) checkCacheMusciIsExists:(NSString *)musicID qualityID:(NSString *)qualityID;

@end
